 <div class="row">
                <div class="col-lg-12"> 
                   <h3 class="page-header text-success">Danh sách tài khoản <a  href="<?php echo base_url()?>" class="btn btn-danger pull-right">Quay lại</a></h3>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                      <div class="panel-heading">
                          <div class="row">
                          	  <div class="pull-right">
								 <a class="btn btn-primary" href="<?php echo base_url()?>backend/product/add_product/">Thêm mới</a>		
                              </div><!-- /.pull-right -->    
                                <div class="input-group col-md-6" style="margin:0px 20px">
                                <form name="frmSearch" method="post" action="<?php echo base_url()?>backend/product/list_product/">
                                    <div class="col-md-4" style="float:left;padding:0">
                                    
                                        <select name="slType" class="form-control" style="float:left;border:0px; font-size:15px;box-shadow:none ">
                                        <option value="" >Tất cả</option>
                                       <?php  
										  $dm=$this->db->query('SELECT * FROM tbdanhmuc')->result_array();
										  foreach($dm as $item_dm)
										  {
										  ?>
                                          	 <option value="<?php echo $item_dm['danhmuc_id'];  ?>"><?php echo $item_dm['danhmuc_tieude'];  ?></option>
                                          <?php 
										  }
									   ?>
                                        </select>
                                    </div>
                                     <div class="col-md-7" style="float:left;padding:0;">       
                                    <input type="text" class="form-control" name="tukhoa" placeholder="Nhập nội dung tìm kiếm..." style="border:0px; border-radius:0;box-shadow:none " value="<?php if(isset($tukhoa)) echo $tukhoa ?>">
                                 
                                    
                                  
                                    </div>
                                    <div class="col-md-1" style="float:left;padding:0"> 
                                    	<button style="float:left;" class="btn btn-primary" type="submit" name="search"><span class="glyphicon glyphicon-search"></span><b style="font-size:12px; padding-left:5px">Tìm kiếm</b></button>
                                    </div>
                                  </form>  
                                </div>
                            </div>
	
                       </div> <!-- /.input-group -->
                        
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="table-responsive" style="overflow:scroll" >
                                <table style="text-align:center"  class="table table-striped table-bordered table-hover " id="dataTables-example">
                                    <thead>
                                        <tr >
                                        	<th  style="text-align:center">#</th>
                                            <th  style="text-align:center; max-width:250px !important"><a href="#">Tên sản phẩm</a></th>
                                            <th  style="text-align:center">Danh mục</th>
                                            <th  style="text-align:center"><a href="#">Giá</a></th>
                                            <th  style="text-align:center"><a href="#">Hình ảnh</a></th>
                                            <th  style="text-align:center"><a href="#">Số lượng</a></th>
                                            <th  style="text-align:center"><a href="#">Trạng thái</a></th>
                                            <th  style="text-align:center">Sửa </th>
                                            
											<th  style='text-align:center'>Xoá</th>
											
                                           
                                           
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <?php
										foreach($danhsach as $item)
										{
									?>
                                        <tr class="odd gradeX">
                                            <td><?php echo $item->sanpham_id ?></td>
                                            <td style="max-width:250px !important"><?php echo $item->sanpham_tieude ?></td>
                                            <td style="text-align:center">
											<?php 
											
											$danhmuc=$this->db->query('SELECT * FROM tbdanhmuc where danhmuc_id='.$item->danhmuc_id)->result_array();
											foreach($danhmuc as $val)
											{
											?>
                                              <p ><?php echo $val['danhmuc_tieude']; ?></p>
											<?php
											}
											?>
                                            </td>
                                            <td><?php echo number_format($item->sanpham_giaban) ?></td>
                                            <td style="text-align:center">
											<img style="max-width:150px" src="<?php echo $item->sanpham_hinhanh ?>">
                                            </td>
                                            <td><?php echo $item->sanpham_soluong ?></td>
                                            <td style="text-align:center">
												<?php echo $item->sanpham_trangthai ?>
                                             </td>
                                            
                                            <td style=" color:#F60"><p><a href="<?php echo base_url()?>backend/product/edit_product/<?php echo $item->sanpham_id ?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-pencil"></span></a></p></td>
   										    

                                            <td><p>
                                            <a  onclick="return confirm('Bạn có muốn xoá tài khoản này không ?');" href="<?php echo base_url()?>backend/product/del_product/<?php echo $item->sanpham_id ?>" class="btn btn-danger btn-xs" ><span class="glyphicon glyphicon-trash"></span></a></p> </td>
                                       
                                            
                                            
                                        </tr>
                                       <?php
										}
									   ?>
                                    </tbody>
                                </table>
                                
                            </div>
                            <!-- /.table-responsive -->
                           
                                <?php echo $this->pagination->create_links();?>
                           
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
